extends Control


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	SoundManger._play_BGM("並木学 - lost memory…(Long ver.).mp3")
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	if GameData.cWorld!="主界面":
		if $"箭头滤镜".scale<Vector2(5,5):
			$"箭头滤镜".scale +=Vector2(0.03,0.03)
		if $"箭头滤镜".rotation_degrees>-135:
			$"箭头滤镜".rotation_degrees -=3
		if $"箭头滤镜".rotation_degrees<-135:
			$"箭头滤镜".rotation_degrees = -135
	match GameData.cWorld:
		"主界面→选关":
			if $"主界面背景".alp>0:
				$"主界面背景".alp-=0.1
				$"选关背景".alp = 1-$"主界面背景".alp
				
			else:
				GameData.cWorld ="选关"
				return;
			
			pass
	pass
